home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / time / yearistype < prev    next >
Text File  |  1993-05-21  |  298b  |  19 lines

  1. #! /bin/sh
  2.  
  3. : '@(#)yearistype.sh    7.2'
  4.  
  5. case $#-$2 in
  6.     2-odd)    case $1 in
  7.             *[13579])    exit 0 ;;
  8.             *)        exit 1 ;;
  9.         esac ;;
  10.     2-even)    case $1 in
  11.             *[24680])    exit 0 ;;
  12.             *)        exit 1 ;;
  13.         esac ;;
  14.     2-*)    echo "$0: wild type - $2" >&2
  15.         exit 1 ;;
  16.     *)    echo "$0: usage is $0 year type" >&2
  17.         exit 1 ;;
  18. esac
  19.